package com.sky.service;


import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {


    /**
     * @description //保存口味
     * @param dishDTO
     * @return void
     * @author riverlyn
     * @date 2024/10/6 17:59
     */
    public void saveWithFlavor(DishDTO dishDTO);

    /**
     * @description //分页查询
     * @param dishPageQueryDTO
     * @return void
     * @author riverlyn
     * @date 2024/10/6 19:09
     */
    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);


    /**
     * @description //批量删除
     * @param ids
     * @return void
     * @author riverlyn
     * @date 2024/10/8 12:21
     */
    void deleteBatch(List<Long> ids);

    DishVO getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDTO dishDTO);

    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);

    /**
     * 根据分类id查询菜品
     * @param categoryId
     * @return
     */
    List<Dish> list(Long categoryId);
}
